package com.itheima.homework.Four;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

public class Demo {
    public static void main(String[] args) throws ParseException {

        Scanner scanner = new Scanner(System.in);

        String future = scanner.nextLine();
//        2023-01-22 00:00:00
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
        Date fu = simpleDateFormat.parse(future);
        long time1 = fu.getTime();
//        System.out.println(parse);
        Date now = new Date();
        long time2 = now.getTime();
        long time = time2 - time1;

        long hour = time/(1000*60*60);
        long min = time/(1000*60);
        long sec = time/(1000);

        System.out.println("时秒分"+hour+"\t"+min+"\t"+sec);

    }
}
